import { Controller, Get, Inject } from '@nestjs/common';
import { ColorService } from './color.service';

@Controller('color')
export class ColorController {
  // constructor(private readonly colorService: ColorService) {}
  constructor(@Inject('CONNECTION') private colorService: ColorService) {}

  @Get()
  getColor() {
    return this.colorService.getColor();
  }
}
